// Copyright (C) joyinter
// All rights reserved.
// 
// Author : Jiang Li
// Date   : 2004-12-21

#ifndef __MAINWND_H_SERVER_SVR_MAIN__
#define __MAINWND_H_SERVER_SVR_MAIN__

#pragma once

#include <common/svr_base/ui_svrwnd.h>
#include <common/svr_base/svr_server.h>
#include <common/svr_base/ui_attribview.h>
#include <common/svr_base/svr_msgwnd.h>


namespace JoyServer
{
class CJoyMainServer;
}
using namespace JoyServer;

class CJoyMainWnd :
    public CJoyServerWnd
{
	DECLARE_DYNAMIC(CJoyMainWnd)
protected:


    virtual JoyServer::CJoyServer* AllocServer();

    virtual void OnServerStart();
    virtual void OnServerStop();
public:
    CJoyMsgWnd  m_mainThreadWnd;
    CList<CJoyAttribViewItem*>  m_roomItems;
	void CJoyMainWnd::ss();
public:
    CJoyMainWnd(void);
    virtual ~CJoyMainWnd(void);

    CJoyMainServer* GetServer()
    {
        return (CJoyMainServer*)m_server;
    }
	void CJoyMainWnd::UpdateInsertAttrib(UINT roomId);//*-----------------------------------------------------
public:
    DECLARE_MESSAGE_MAP()
    afx_msg int OnCreate(LPCREATESTRUCT lpCreateStruct);
    afx_msg void OnDestroy();
};

#endif  // __MAINWND_H_SERVER_SVR_MAIN__